import request from '@/utils/request'
export function fetchSalesmanProfitList(params) {
  return request({
    // url:'/statistic/distributor/bonus/list',
    url:'/admin/distributor/bonus/list',
    method:'get',
    // data:params
  })
}

export function updateSalesmanProfitInfo(uid) {
    return request({
      url:'/statistic/distributor/bonus/receive/'+uid,
      method:'get',
    //   data:info
    })
}
export function getSalesmanProfitList(info) {
    return request({
      url:'/statistic/distributor/order/list',
      method:'post',
      data:info
    })
}

export function getSalesmanProfigDetail(did){
  return request({
    url:'/admin/distributor/bonus/list/detail/'+did,//{did}
    method:'get',
  })
}

export function operateSalesmanProfigDetail(did,info){
  return request({
    url:'/admin/distributor/bonus/operation/'+did,//{did}
    method:'post',
    data:info
  })
}